/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.business.service;

import me.zhengjie.business.domain.Sbgs;
import me.zhengjie.business.domain.vo.KB03;
import me.zhengjie.business.domain.vo.KB22;
import me.zhengjie.business.service.dto.SbgsDto;
import me.zhengjie.business.service.dto.SbgsQueryCriteria;
import me.zhengjie.business.service.dto.ZhsqDto;
import me.zhengjie.pay.domain.PaidQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @website https://el-admin.vip
* @description 服务接口
* @author xiahongbo
* @date 2022-04-13
**/
public interface SbgsService {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(SbgsQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<SbgsDto>
    */
    List<SbgsDto> queryAll(SbgsQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param bisGsglId ID
     * @return SbgsDto
     */
    SbgsDto findById(String bisGsglId);

    /**
     * 根据用户ID查询
     * @param bisSbgsUserId
     * @return Sbgs
     */
    SbgsDto findByBisGsglUserId(Long bisSbgsUserId);
    Sbgs findByBisGsglUserId1(Long bisSbgsUserId);

    /**
    * 创建
    * @param resources /
    * @return SbgsDto
    */
    SbgsDto create(Sbgs resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(Sbgs resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(String[] ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<SbgsDto> all, HttpServletResponse response) throws IOException;

    /**
     * 导出拨付单
     * @param all 导出拨付单
     * @param response /
     * @throws IOException /
     */
    void downloadKb03(List<KB03> all, HttpServletResponse response) throws IOException;
    List<KB03> queryKb03(PaidQueryCriteria criteria);

    /**
     * 导出拨付单明细
     * @param all 导出拨付单
     * @param response /
     * @throws IOException /
     */
    void downloadKb22(List<KB22> all, HttpServletResponse response) throws IOException;
    List<KB22> queryKb22(PaidQueryCriteria criteria);

    /**
     * 查询商保公司管理下机构的照护数量
     * @param zhlb 照护类别
     * @param sbId 商保公司ID
     * @param jgxx 机构信息
     * @param zt 状态
     * @param pageable
     * @return
     */
    Map<String,Object> queryHljgCntVoPageList(String zhlb, String sbId, String jgxx, List<String> zt, Pageable pageable);
}